package cn.tx.service.impl;

import java.util.List;

import cn.tx.dao.EmpDao;
import cn.tx.model.Emp;
import cn.tx.query.EmpQuery;
import cn.tx.service.EmpService;

public class EmpServiceImpl extends BaseServiceImpl<Emp, EmpQuery> implements EmpService {

	private EmpDao empDao;

	public void setEmpDao(EmpDao empDao) {
		//empDao做个性化模块的功能
		this.empDao = empDao;
		//做公共的功能
		this.baseDao = empDao;
	}

	

	@Override
	public Emp getEmpByUsername(String username) {
		return empDao.getEmpByUsername(username);
	}



	@Override
	public Emp login(String username, String password) {
		
		return empDao.login(username, password);
	}
	
	

	
	
	

}
